#!/bin/bash
# (C) Dan Reidy <dubkat@gmail.com>
# cheat-script to update ebuilds and manifests in my personal gentoo overlay
# $Id: overlay-digest.sh 234 2014-12-20 00:33:41Z dubkat $

OVERLAY_ROOT="/home/dubkat/Development/GoogleCode/sigterm-overlay/trunk"

pushd ${OVERLAY_ROOT}

find ${OVERLAY_ROOT} -mindepth 2 -name "*.ebuild" -exec svn add '{}' \;
find ${OVERLAY_ROOT} -mindepth 2 -name "*.ebuild" -exec svn ps svn:keywords Id '{}' \;
svn ci -m 'Automated Checkin/Update'
svn up

find ${OVERLAY_ROOT} -mindepth 2 -name "*.ebuild" -exec ebuild '{}' digest \;
svn ci -m 'Automated Manifest Update'
popd
exit 0;
